﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Linq.Mapping;

namespace DBContent.Model
{
    /// <summary>
    /// Author:Liangchuan Gu
    /// date:2012-04-07
    /// </summary>
    [Table]
    public class DBGame
    {
        private string _gameID;
        /// <summary>
        /// GameID
        /// </summary>
        [Column(IsPrimaryKey = true,
            DbType = "NVarChar(37) NOT NULL",
            CanBeNull = false)]
        public string GameID
        { 
            get 
            { 
                return _gameID; 
            } 
            set 
            { 
                _gameID = value; 
            } 
        }

        private string _version;
        /// <summary>
        /// Version
        /// </summary>
        [Column(DbType = "NVarChar(3)")]
        public string Version
        { 
            get 
            {
                return this._version; 
            } 
            set 
            { 
                _version = value; 
            }
        }

        private string _status;
        /// <summary>
        /// Status
        /// </summary>
        [Column(DbType = "NVarChar(1)")]
        public string Status
        { 
            get 
            { 
                return this._status; 
            } 
            set 
            { 
                _status = value; 
            } 
        }

    }
}
